home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 008a / fgdemo10.zip / DEFS.H < prev    next >
Text File  |  1991-10-02  |  2KB  |  111 lines

  1. #include "char.h"
  2. #include "common.h"
  3. #include "display.h"
  4. #include "editor.h"
  5. #include "file.h"
  6. #include "fgdemo.h"
  7. #include "menu.h"
  8. #include "misc.h"
  9. #include "fundmtls.h"
  10. #include "utility.h"
  11. #include "video.h"
  12.  
  13. #include <ctype.h>
  14. #include <dos.h>
  15. #include <fastgraf.h>
  16. #include <io.h>
  17. #include <process.h>
  18. #include <stdio.h>
  19. #include <stdlib.h>
  20. #include <string.h>
  21.  
  22. #ifdef   __TURBOC__
  23. #include <alloc.h>
  24. #else
  25. #include <malloc.h>
  26. #endif
  27.  
  28. #define BETWEEN(x,a,b) ((x >= a) && (x <= b))
  29. #define MAX(x,y) ((x) > (y)) ? (x) : (y)
  30. #define MIN(x,y) ((x) < (y)) ? (x) : (y)
  31.  
  32. #define PAGES 2
  33.  
  34. #define OFF   0
  35. #define ON    1
  36.  
  37. #define ERR  -1
  38. #define OK    1
  39.  
  40. #define FALSE 0
  41. #define TRUE  1
  42.  
  43. #define ASCII        0
  44. #define ALPHANUMERIC 1
  45.  
  46. #define BS           8
  47. #define CR          13
  48. #define ESC         27
  49. #define SPACEBAR    32
  50.  
  51. #define UP_ARROW    72
  52. #define DOWN_ARROW  80
  53. #define LEFT_ARROW  75
  54. #define RIGHT_ARROW 77
  55.  
  56. #define HOME        71
  57. #define PAGE_UP     73
  58. #define END         79
  59. #define PAGE_DOWN   81
  60.  
  61. #define INSERT      82
  62. #define DELETE      83
  63.  
  64. #define ITEMS 6  /* number of items on main menu */
  65.  
  66. extern char string[];
  67.  
  68. extern int mode06;
  69. extern int mode11;
  70. extern int mode14;
  71. extern int mode16;
  72.  
  73. extern int mode06_avail;
  74. extern int mode11_avail;
  75. extern int mode14_avail;
  76. extern int mode16_avail;
  77.  
  78. extern int background;
  79. extern int buttons;
  80. extern int hidden, visual;
  81. extern int mouse;
  82. extern int old_mode, mode;
  83. extern int ptsize;
  84. extern int redraw;
  85. extern int xlimit, ylimit;
  86. extern int xmouse, ymouse;
  87. extern int mouse_limits[];
  88. extern int mouse_limits[];
  89.  
  90. extern int menu_top;
  91. extern int menu_bottom;
  92.  
  93. extern char matrix1[];  /* dither patterns */
  94. extern char matrix2[];
  95.  
  96. typedef int (*PFI)();   /* pointer to an integer function */
  97.  
  98. /* command structure */
  99.  
  100. typedef struct cmd
  101. {
  102.    PFI menu_func;       /* function to carry out the command */
  103.    char *menu_item;     /* the menu item as written on the screen */
  104.    int x1;              /* coordinates of location of menu_item */
  105.    int x2;
  106.    int next;
  107.    int prev;
  108. }  CMD;
  109.  
  110. extern CMD main_menu[];
  111.